package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;

import com.stylefeng.guns.modular.hhtb.model.LogPurseCorpus;
import com.stylefeng.guns.modular.hhtb.dao.LogPurseCorpusMapper;
import com.stylefeng.guns.modular.hhtb.model.LogPurseCorpusDto;
import com.stylefeng.guns.modular.hhtb.service.ILogPurseCorpusService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 理财钱包本金流水 服务实现类
 * </p>
 *
 * @author baggar
 * @since 2018-08-30
 */
@Service
public class LogPurseCorpusServiceImpl extends ServiceImpl<LogPurseCorpusMapper, LogPurseCorpus> implements ILogPurseCorpusService {
    @Autowired
    private LogPurseCorpusMapper logPurseCorpusMapper;
    @Override
    public List<LogPurseCorpusDto> showLogPurseCorpusInfo(Page<LogPurseCorpusDto> page, LogPurseCorpusDto logPurseCorpusDto) {
        List<LogPurseCorpusDto> list = logPurseCorpusMapper.showLogPurseCorpusInfo(page,logPurseCorpusDto);
        Integer total = logPurseCorpusMapper.showLogPurseCorpusInfoCount(logPurseCorpusDto);
        page.setTotal(total);
        return list;
    }
}
